﻿using Ewk.MachineLearning.Classification.Common;
using Ewk.MachineLearning.Classification.Interfaces;

namespace Ewk.MachineLearning.Persistance.Domain
{
    /// <summary>
    /// Represents a word.
    /// </summary>
    public class Word :
        TextEntity,
        IFeature
    {
        public bool EqualsForMachineLearning(IFeature other)
        {
            var comparer = new TextEntityComparer<ITextEntity>();
            return comparer.Equals(this, other as ITextEntity);
        }
    }
}